<div class="problemindexholder" problemindex="A">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     A. Petya and Catacombs
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     A very brave explorer Petya once decided to explore Paris catacombs. Since Petya is not really experienced, his exploration is just walking through the catacombs.
    </p>
    <p>
     Catacombs consist of several rooms and bidirectional passages between some pairs of them. Some passages can connect a room to itself and since the passages are built on different depths they do not intersect each other. Every minute Petya arbitrary chooses a passage from the room he is currently in and then reaches the room on the other end of the passage in exactly one minute. When he enters a room at minute
     <span class="tex-span">
      <i>
       i
      </i>
     </span>
     , he makes a note in his logbook with number
     <span class="tex-span">
      <i>
       t
      </i>
      <sub class="lower-index">
       <i>
        i
       </i>
      </sub>
     </span>
     :
    </p>
    <ul>
     <li>
      If Petya has visited this room before, he writes down the minute he was in this room last time;
     </li>
     <li>
      Otherwise, Petya writes down an arbitrary non-negative integer strictly less than current minute
      <span class="tex-span">
       <i>
        i
       </i>
      </span>
      .
     </li>
    </ul>
    <p>
     Initially, Petya was in one of the rooms at minute
     <span class="tex-span">
      0
     </span>
     , he didn't write down number
     <span class="tex-span">
      <i>
       t
      </i>
      <sub class="lower-index">
       0
      </sub>
     </span>
     .
    </p>
    <p>
     At some point during his wandering Petya got tired, threw out his logbook and went home. Vasya found his logbook and now he is curious: what is the minimum possible number of rooms in Paris catacombs according to Petya's logbook?
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first line contains a single integer
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       n
      </i>
      ≤ 2·10
      <sup class="upper-index">
       5
      </sup>
     </span>
     ) — then number of notes in Petya's logbook.
    </p>
    <p>
     The second line contains
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     non-negative integers
     <span class="tex-span">
      <i>
       t
      </i>
      <sub class="lower-index">
       1
      </sub>
      ,
      <i>
       t
      </i>
      <sub class="lower-index">
       2
      </sub>
      , ...,
      <i>
       t
      </i>
      <sub class="lower-index">
       <i>
        n
       </i>
      </sub>
     </span>
     (
     <span class="tex-span">
      0 ≤
      <i>
       t
      </i>
      <sub class="lower-index">
       <i>
        i
       </i>
      </sub>
      &lt;
      <i>
       i
      </i>
     </span>
     ) — notes in the logbook.
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     In the only line print a single integer — the minimum possible number of rooms in Paris catacombs.
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>2<br/>0 0<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>2<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>5<br/>0 1 0 1 3<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>3<br/></pre>
     </div>
    </div>
   </div>
   <div class="note">
    <div class="section-title">
     Note
    </div>
    <p>
     In the first sample, sequence of rooms Petya visited could be, for example
     <span class="tex-span">
      1 → 1 → 2
     </span>
     ,
     <span class="tex-span">
      1 → 2 → 1
     </span>
     or
     <span class="tex-span">
      1 → 2 → 3
     </span>
     . The minimum possible number of rooms is
     <span class="tex-span">
      2
     </span>
     .
    </p>
    <p>
     In the second sample, the sequence could be
     <span class="tex-span">
      1 → 2 → 3 → 1 → 2 → 1
     </span>
     .
    </p>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
